home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d21 / dvglue10.arc / TVPOSWIN.C < prev    next >
C/C++ Source or Header  |  1988-08-13  |  1KB  |  34 lines

  1. /*=======================================================*/
  2. /*  TVPOSWIN.C                                           */
  3. /*                                                       */
  4. /*  (c) Copyright 1988 Ralf Brown  All Rights Reserved   */
  5. /*  May be freely copied for noncommercial use, so long  */
  6. /*  as this copyright notice remains intact, and any     */
  7. /*  changes are marked in the comment blocks preceding   */
  8. /*  functions.                                           */
  9. /*=======================================================*/
  10.  
  11. #include "tvapi.h"
  12.  
  13. /*======================================================*/
  14. /* TVposwin  select a window's position relative to     */
  15. /*           another                                    */
  16. /*   Ralf Brown 4/2/88                                  */
  17. /*   Ralf Brown 7/19/88 added row_offset, col_offset    */
  18. /*======================================================*/
  19.  
  20. void pascal TVposwin(OBJECT win, OBJECT parent, int pos, int row_offset,int col_offset)
  21. {
  22.    if (win == NIL)
  23.       win = TVmywindow() ;
  24.    _BX = OBJSEG(parent) ;
  25.    _ES = OBJSEG(win) ;
  26.    _DL = pos ;
  27.    _CH = col_offset ;
  28.    _CL = row_offset ;
  29.    _AX = 0x1023 ;
  30.    geninterrupt(0x15) ;
  31. }
  32.  
  33. /* End of TVPOSWIN.C */
  34.